package com.diancan.modules.admin.lbt;

import com.diancan.common.Result;
import com.diancan.domain.Lbt;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;

@RestController
@RequestMapping("lbt")
public class LbtController {
    private final LbtService lbtService;

    public LbtController(LbtService lbtService) {
        this.lbtService = lbtService;
    }

    // 获取轮播图列表
    @GetMapping("getLbt")
    public Result getLbt() {
        return Result.buildSuccessResult(lbtService.list());
    }
}
